<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:forgeview="http://jboss.org/forge/view"	
	template="/resources/scaffold/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{sdQuotationItemBean.id}"/>
		<f:event type="preRenderView" listener="#{sdQuotationItemBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Create Sd Quotation Item"/>

	<ui:define name="header">
		Sd Quotation Item
	</ui:define>

	<ui:define name="subheader">
		<c:choose>
			<c:when test="#{!empty sdQuotationItemBean.id}">
				Edit existing Sd Quotation Item
			</c:when>
			<c:otherwise>
				Create a new Sd Quotation Item
			</c:otherwise>
		</c:choose>
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="create">
			<h:messages globalOnly="true" styleClass="error"/>

			<h:panelGrid columnClasses="label,component,required" columns="3">
				<h:outputLabel for="sdQuotationItemBeanSdQuotationItemSdQuotation" value="Sd Quotation:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sdQuotationBean.converter}" id="sdQuotationItemBeanSdQuotationItemSdQuotation" value="#{sdQuotationItemBean.sdQuotationItem.sdQuotation}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sdQuotationBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="sdQuotationItemBeanSdQuotationItemSdQuotation" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdQuotationItemBeanSdQuotationItemMmItem" value="Mm Item:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{mmItemBean.converter}" id="sdQuotationItemBeanSdQuotationItemMmItem" value="#{sdQuotationItemBean.sdQuotationItem.mmItem}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{mmItemBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="sdQuotationItemBeanSdQuotationItemMmItem" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdQuotationItemBeanSdQuotationItemQtItemCode" value="Qt Item Code:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationItemBeanSdQuotationItemQtItemCode" maxLength="50" value="#{sdQuotationItemBean.sdQuotationItem.qtItemCode}"/>
					<h:message for="sdQuotationItemBeanSdQuotationItemQtItemCode" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdQuotationItemBeanSdQuotationItemQtItemDescr" value="Qt Item Descr:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationItemBeanSdQuotationItemQtItemDescr" maxLength="300" value="#{sdQuotationItemBean.sdQuotationItem.qtItemDescr}"/>
					<h:message for="sdQuotationItemBeanSdQuotationItemQtItemDescr" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sdQuotationItemBeanSdQuotationItemQtQty" value="Qt Qty:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationItemBeanSdQuotationItemQtQty" required="true" value="#{sdQuotationItemBean.sdQuotationItem.qtQty}"/>
					<h:message for="sdQuotationItemBeanSdQuotationItemQtQty" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="sdQuotationItemBeanSdQuotationItemQtPpu" value="Qt Ppu:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationItemBeanSdQuotationItemQtPpu" required="true" value="#{sdQuotationItemBean.sdQuotationItem.qtPpu}"/>
					<h:message for="sdQuotationItemBeanSdQuotationItemQtPpu" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="sdQuotationItemBeanSdQuotationItemQtStatusIncVat" value="Qt Status Inc Vat:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationItemBeanSdQuotationItemQtStatusIncVat" required="true" value="#{sdQuotationItemBean.sdQuotationItem.qtStatusIncVat}"/>
					<h:message for="sdQuotationItemBeanSdQuotationItemQtStatusIncVat" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="sdQuotationItemBeanSdQuotationItemQtVatPercVal" value="Qt Vat Perc Val:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationItemBeanSdQuotationItemQtVatPercVal" required="true" value="#{sdQuotationItemBean.sdQuotationItem.qtVatPercVal}"/>
					<h:message for="sdQuotationItemBeanSdQuotationItemQtVatPercVal" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="sdQuotationItemBeanSdQuotationItemQtVat" value="Qt Vat:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationItemBeanSdQuotationItemQtVat" required="true" value="#{sdQuotationItemBean.sdQuotationItem.qtVat}"/>
					<h:message for="sdQuotationItemBeanSdQuotationItemQtVat" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="sdQuotationItemBeanSdQuotationItemQtTotalPriceExcVat" value="Qt Total Price Exc Vat:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationItemBeanSdQuotationItemQtTotalPriceExcVat" required="true" value="#{sdQuotationItemBean.sdQuotationItem.qtTotalPriceExcVat}"/>
					<h:message for="sdQuotationItemBeanSdQuotationItemQtTotalPriceExcVat" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
				<h:outputLabel for="sdQuotationItemBeanSdQuotationItemQtTotalPrice" value="Qt Total Price:"/>
				<h:panelGroup>
					<h:inputText id="sdQuotationItemBeanSdQuotationItemQtTotalPrice" required="true" value="#{sdQuotationItemBean.sdQuotationItem.qtTotalPrice}"/>
					<h:message for="sdQuotationItemBeanSdQuotationItemQtTotalPrice" styleClass="error"/>
				</h:panelGroup>
				<h:outputText value="*"/>
			</h:panelGrid>

			<div class="buttons">
				<h:commandLink value="Save" action="#{sdQuotationItemBean.update}" styleClass="btn btn-primary"/>
				<c:choose>
					<c:when test="#{!empty sdQuotationItemBean.id}">
						<h:link value="Cancel" outcome="view" styleClass="btn btn-primary">
							<f:param name="id" value="#{sdQuotationItemBean.id}"/>
						</h:link>
						<h:commandLink value="Delete" action="#{sdQuotationItemBean.delete}" styleClass="btn btn-primary"/>
					</c:when>
					<c:otherwise>
						<h:link value="Cancel" outcome="search" styleClass="btn btn-primary"/>
					</c:otherwise>
				</c:choose>
			</div>
		</h:form>
	</ui:define>

</ui:composition>